package com.dianping.cat.home.dal.report;

import java.util.Arrays;
import java.util.Date;
import org.unidal.dal.jdbc.DataObject;














public class Baseline
  extends DataObject
{
  private int m_id;
  private String m_reportName;
  private String m_indexKey;
  private Date m_reportPeriod;
  private byte[] m_data;
  private Date m_creationDate;
  private int m_keyId;
  private double[] m_dataInDoubleArray;

  public void afterLoad() {
/*  33 */     this.m_keyId = this.m_id;
/*  34 */     clearUsage();
  }


/*  38 */   public Date getCreationDate() { return this.m_creationDate; }



/*  42 */   public byte[] getData() { return this.m_data; }



/*  46 */   public double[] getDataInDoubleArray() { return this.m_dataInDoubleArray; }



/*  50 */   public int getId() { return this.m_id; }



/*  54 */   public String getIndexKey() { return this.m_indexKey; }



/*  58 */   public int getKeyId() { return this.m_keyId; }



/*  62 */   public String getReportName() { return this.m_reportName; }



/*  66 */   public Date getReportPeriod() { return this.m_reportPeriod; }


  public Baseline setCreationDate(Date creationDate) {
/*  70 */     setFieldUsed(BaselineEntity.CREATION_DATE, true);
/*  71 */     this.m_creationDate = creationDate;
/*  72 */     return this;
  }

  public Baseline setData(byte[] data) {
/*  76 */     setFieldUsed(BaselineEntity.DATA, true);
/*  77 */     this.m_data = data;
    return this;
  }

  public Baseline setDataInDoubleArray(double[] dataInDoubleArray) {
/*  82 */     setFieldUsed(BaselineEntity.DATAINDOUBLEARRAY, true);
/*  83 */     this.m_dataInDoubleArray = dataInDoubleArray;
/*  84 */     return this;
  }

  public Baseline setId(int id) {
/*  88 */     setFieldUsed(BaselineEntity.ID, true);
/*  89 */     this.m_id = id;

/*  91 */     setFieldUsed(BaselineEntity.KEY_ID, true);
/*  92 */     this.m_keyId = id;
/*  93 */     return this;
  }

  public Baseline setIndexKey(String indexKey) {
/*  97 */     setFieldUsed(BaselineEntity.INDEX_KEY, true);
/*  98 */     this.m_indexKey = indexKey;
/*  99 */     return this;
  }

  public Baseline setKeyId(int keyId) {
/* 103 */     setFieldUsed(BaselineEntity.KEY_ID, true);
/* 104 */     this.m_keyId = keyId;
/* 105 */     return this;
  }

  public Baseline setReportName(String reportName) {
/* 109 */     setFieldUsed(BaselineEntity.REPORT_NAME, true);
/* 110 */     this.m_reportName = reportName;
/* 111 */     return this;
  }

  public Baseline setReportPeriod(Date reportPeriod) {
/* 115 */     setFieldUsed(BaselineEntity.REPORT_PERIOD, true);
/* 116 */     this.m_reportPeriod = reportPeriod;
/* 117 */     return this;
  }


  public String toString() {
/* 122 */     StringBuilder sb = new StringBuilder(1024);

/* 124 */     sb.append("Baseline[");
/* 125 */     sb.append("creation-date: ").append(this.m_creationDate);
/* 126 */     sb.append(", data: ").append((this.m_data == null) ? null : Arrays.asList(new byte[][] { this.m_data }));
/* 127 */     sb.append(", dataInDoubleArray: ").append((this.m_dataInDoubleArray == null) ? null : Arrays.asList(new double[][] { this.m_dataInDoubleArray }));
/* 128 */     sb.append(", id: ").append(this.m_id);
/* 129 */     sb.append(", index-key: ").append(this.m_indexKey);
/* 130 */     sb.append(", key-id: ").append(this.m_keyId);
/* 131 */     sb.append(", report-name: ").append(this.m_reportName);
/* 132 */     sb.append(", report-period: ").append(this.m_reportPeriod);
/* 133 */     sb.append("]");
/* 134 */     return sb.toString();
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/dal/report/Baseline.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */